package com.learning.spring.cloud.mapper;

import com.learning.spring.cloud.domain.model.Order;
import com.learning.spring.cloud.dto.OrderDto;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

@Mapper
public interface OrderMapper {
    OrderMapper INSTANCE = Mappers.getMapper(OrderMapper.class);

    OrderDto toDto(Order doctor);

    Order toOrder(OrderDto orderDto);


}
